import { Router, Route, Switch, Redirect } from "dva/router";
import RootLayout from "@/component/layout";
import { routersConfig } from "./index";
import TemplateManager from "@/views/templateManager";
import EditeSheet from "@/views/editeSheet";
function RouterConfig({ history }) {
    return (
        <Router history={history}>
            <Switch>
                <RootLayout history={history}>
                    {routersConfig.map((route) => {
                        return <Route path={route.key} key={route.key} exact component={route.component} />;
                    })}
                </RootLayout>
            </Switch>
        </Router>
    );
}

export default RouterConfig;
